package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Navigation;
import com.nbsaas.boot.cms.api.domain.simple.NavigationSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 导航菜单-列表对象转换器
*/

public class NavigationSimpleConvert implements Converter<NavigationSimple, Navigation> {




@Override
public NavigationSimple convert(Navigation source) {
    NavigationSimple result = new NavigationSimple();

                result.setVisible(source.getVisible());
                result.setNewWindow(source.getNewWindow());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setAddDate(source.getAddDate());
                result.setUrl(source.getUrl());
                result.setParentId(source.getParentId());
                result.setRelatedId(source.getRelatedId());
                result.setCssClass(source.getCssClass());
                result.setName(source.getName());
                result.setMenuType(source.getMenuType());
                result.setPosition(source.getPosition());
                result.setId(source.getId());
                result.setTargetUser(source.getTargetUser());
                result.setLastDate(source.getLastDate());


    return result;
}

}